# QueryInst

Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13359) END FROM WidgetInst WHERE WidgetInstId = 13359)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13360) END FROM WidgetInst WHERE WidgetInstId = 13360)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 13361) END FROM WidgetInst WHERE WidgetInstId = 13361)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13480;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13518;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13519;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13520;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13522;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13523;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13539;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13541;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13542;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13543;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13547;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13345) END FROM WidgetInst WHERE WidgetInstId = 13345)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13346) END FROM WidgetInst WHERE WidgetInstId = 13346)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13347) END FROM WidgetInst WHERE WidgetInstId = 13347)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13551;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13348) END FROM WidgetInst WHERE WidgetInstId = 13348)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13349) END FROM WidgetInst WHERE WidgetInstId = 13349)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13553;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13350) END FROM WidgetInst WHERE WidgetInstId = 13350)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13554;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13351) END FROM WidgetInst WHERE WidgetInstId = 13351)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13555;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13352) END FROM WidgetInst WHERE WidgetInstId = 13352)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13353) END FROM WidgetInst WHERE WidgetInstId = 13353)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13354) END FROM WidgetInst WHERE WidgetInstId = 13354)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13355) END FROM WidgetInst WHERE WidgetInstId = 13355)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13356) END FROM WidgetInst WHERE WidgetInstId = 13356)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13357) END FROM WidgetInst WHERE WidgetInstId = 13357)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13358) END FROM WidgetInst WHERE WidgetInstId = 13358)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13359) END FROM WidgetInst WHERE WidgetInstId = 13359)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13360) END FROM WidgetInst WHERE WidgetInstId = 13360)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13361) END FROM WidgetInst WHERE WidgetInstId = 13361)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13606;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13612;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13613;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13615;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13616;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13618;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13619;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13620;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13621;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13622;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13623;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13624;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13625;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13627;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13629;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13630;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13632;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13651) END FROM WidgetInst WHERE WidgetInstId = 13651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13668;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13652) END FROM WidgetInst WHERE WidgetInstId = 13652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13653) END FROM WidgetInst WHERE WidgetInstId = 13653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13670;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13654) END FROM WidgetInst WHERE WidgetInstId = 13654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13655) END FROM WidgetInst WHERE WidgetInstId = 13655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13672;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13656) END FROM WidgetInst WHERE WidgetInstId = 13656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13657) END FROM WidgetInst WHERE WidgetInstId = 13657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13658) END FROM WidgetInst WHERE WidgetInstId = 13658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13659) END FROM WidgetInst WHERE WidgetInstId = 13659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13676;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13660) END FROM WidgetInst WHERE WidgetInstId = 13660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13661) END FROM WidgetInst WHERE WidgetInstId = 13661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13662) END FROM WidgetInst WHERE WidgetInstId = 13662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13663) END FROM WidgetInst WHERE WidgetInstId = 13663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13664) END FROM WidgetInst WHERE WidgetInstId = 13664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13665) END FROM WidgetInst WHERE WidgetInstId = 13665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13666) END FROM WidgetInst WHERE WidgetInstId = 13666) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 13667) END FROM WidgetInst WHERE WidgetInstId = 13667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13704;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13708;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13716;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13720;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13722;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13732;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13733;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13734;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13735;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13651) END FROM WidgetInst WHERE WidgetInstId = 13651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13736;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13652) END FROM WidgetInst WHERE WidgetInstId = 13652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13653) END FROM WidgetInst WHERE WidgetInstId = 13653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13654) END FROM WidgetInst WHERE WidgetInstId = 13654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13655) END FROM WidgetInst WHERE WidgetInstId = 13655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13656) END FROM WidgetInst WHERE WidgetInstId = 13656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13657) END FROM WidgetInst WHERE WidgetInstId = 13657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13658) END FROM WidgetInst WHERE WidgetInstId = 13658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13659) END FROM WidgetInst WHERE WidgetInstId = 13659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13660) END FROM WidgetInst WHERE WidgetInstId = 13660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13661) END FROM WidgetInst WHERE WidgetInstId = 13661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13662) END FROM WidgetInst WHERE WidgetInstId = 13662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13663) END FROM WidgetInst WHERE WidgetInstId = 13663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13664) END FROM WidgetInst WHERE WidgetInstId = 13664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13665) END FROM WidgetInst WHERE WidgetInstId = 13665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13666) END FROM WidgetInst WHERE WidgetInstId = 13666) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13667) END FROM WidgetInst WHERE WidgetInstId = 13667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13770;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13772;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13773;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13774;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13777;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13379) END FROM WidgetInst WHERE WidgetInstId = 13379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13380) END FROM WidgetInst WHERE WidgetInstId = 13380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13381) END FROM WidgetInst WHERE WidgetInstId = 13381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13789;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13382) END FROM WidgetInst WHERE WidgetInstId = 13382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13790;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13383) END FROM WidgetInst WHERE WidgetInstId = 13383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13791;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13384) END FROM WidgetInst WHERE WidgetInstId = 13384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13792;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13385) END FROM WidgetInst WHERE WidgetInstId = 13385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13793;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13386) END FROM WidgetInst WHERE WidgetInstId = 13386) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13794;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13387) END FROM WidgetInst WHERE WidgetInstId = 13387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13388) END FROM WidgetInst WHERE WidgetInstId = 13388) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13389) END FROM WidgetInst WHERE WidgetInstId = 13389) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13390) END FROM WidgetInst WHERE WidgetInstId = 13390) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13391) END FROM WidgetInst WHERE WidgetInstId = 13391) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13392) END FROM WidgetInst WHERE WidgetInstId = 13392) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13393) END FROM WidgetInst WHERE WidgetInstId = 13393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13394) END FROM WidgetInst WHERE WidgetInstId = 13394) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13802;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13395) END FROM WidgetInst WHERE WidgetInstId = 13395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13803;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13804;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13805;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13806;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13807;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13808;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13819;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13855;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13858;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13860;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13861;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14416) END FROM WidgetInst WHERE WidgetInstId = 14416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14417) END FROM WidgetInst WHERE WidgetInstId = 14417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14418) END FROM WidgetInst WHERE WidgetInstId = 14418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14419) END FROM WidgetInst WHERE WidgetInstId = 14419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14420) END FROM WidgetInst WHERE WidgetInstId = 14420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14421) END FROM WidgetInst WHERE WidgetInstId = 14421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14422) END FROM WidgetInst WHERE WidgetInstId = 14422) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14423) END FROM WidgetInst WHERE WidgetInstId = 14423) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14442;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14443;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14444;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14431) END FROM WidgetInst WHERE WidgetInstId = 14431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14432) END FROM WidgetInst WHERE WidgetInstId = 14432) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14416) END FROM WidgetInst WHERE WidgetInstId = 14416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14417) END FROM WidgetInst WHERE WidgetInstId = 14417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14418) END FROM WidgetInst WHERE WidgetInstId = 14418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14419) END FROM WidgetInst WHERE WidgetInstId = 14419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14420) END FROM WidgetInst WHERE WidgetInstId = 14420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14421) END FROM WidgetInst WHERE WidgetInstId = 14421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14422) END FROM WidgetInst WHERE WidgetInstId = 14422) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14423) END FROM WidgetInst WHERE WidgetInstId = 14423) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14480;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14481;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14431) END FROM WidgetInst WHERE WidgetInstId = 14431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14482;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14432) END FROM WidgetInst WHERE WidgetInstId = 14432) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14416) END FROM WidgetInst WHERE WidgetInstId = 14416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14417) END FROM WidgetInst WHERE WidgetInstId = 14417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14418) END FROM WidgetInst WHERE WidgetInstId = 14418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14419) END FROM WidgetInst WHERE WidgetInstId = 14419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14504;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14420) END FROM WidgetInst WHERE WidgetInstId = 14420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14505;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14421) END FROM WidgetInst WHERE WidgetInstId = 14421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14506;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14422) END FROM WidgetInst WHERE WidgetInstId = 14422) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14507;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14423) END FROM WidgetInst WHERE WidgetInstId = 14423) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14508;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14424) END FROM WidgetInst WHERE WidgetInstId = 14424) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14509;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14425) END FROM WidgetInst WHERE WidgetInstId = 14425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14510;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14426) END FROM WidgetInst WHERE WidgetInstId = 14426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14511;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14427) END FROM WidgetInst WHERE WidgetInstId = 14427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14512;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14513;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14514;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14431) END FROM WidgetInst WHERE WidgetInstId = 14431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14432) END FROM WidgetInst WHERE WidgetInstId = 14432) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14539;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14541;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14542;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14543;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14547;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14551;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14688) END FROM WidgetInst WHERE WidgetInstId = 14688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14689) END FROM WidgetInst WHERE WidgetInstId = 14689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14690) END FROM WidgetInst WHERE WidgetInstId = 14690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14691) END FROM WidgetInst WHERE WidgetInstId = 14691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14708;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14692) END FROM WidgetInst WHERE WidgetInstId = 14692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14693) END FROM WidgetInst WHERE WidgetInstId = 14693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14694) END FROM WidgetInst WHERE WidgetInstId = 14694) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14695) END FROM WidgetInst WHERE WidgetInstId = 14695) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14696) END FROM WidgetInst WHERE WidgetInstId = 14696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14697) END FROM WidgetInst WHERE WidgetInstId = 14697) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14698) END FROM WidgetInst WHERE WidgetInstId = 14698) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14699) END FROM WidgetInst WHERE WidgetInstId = 14699) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14716;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14700) END FROM WidgetInst WHERE WidgetInstId = 14700) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14701) END FROM WidgetInst WHERE WidgetInstId = 14701) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14702) END FROM WidgetInst WHERE WidgetInstId = 14702) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14703) END FROM WidgetInst WHERE WidgetInstId = 14703) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14720;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14704) END FROM WidgetInst WHERE WidgetInstId = 14704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14688) END FROM WidgetInst WHERE WidgetInstId = 14688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14689) END FROM WidgetInst WHERE WidgetInstId = 14689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14690) END FROM WidgetInst WHERE WidgetInstId = 14690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14691) END FROM WidgetInst WHERE WidgetInstId = 14691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14692) END FROM WidgetInst WHERE WidgetInstId = 14692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14693) END FROM WidgetInst WHERE WidgetInstId = 14693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14694) END FROM WidgetInst WHERE WidgetInstId = 14694) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14695) END FROM WidgetInst WHERE WidgetInstId = 14695) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14696) END FROM WidgetInst WHERE WidgetInstId = 14696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14697) END FROM WidgetInst WHERE WidgetInstId = 14697) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14698) END FROM WidgetInst WHERE WidgetInstId = 14698) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14699) END FROM WidgetInst WHERE WidgetInstId = 14699) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14700) END FROM WidgetInst WHERE WidgetInstId = 14700) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14701) END FROM WidgetInst WHERE WidgetInstId = 14701) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14702) END FROM WidgetInst WHERE WidgetInstId = 14702) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14703) END FROM WidgetInst WHERE WidgetInstId = 14703) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14704) END FROM WidgetInst WHERE WidgetInstId = 14704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14755;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14688) END FROM WidgetInst WHERE WidgetInstId = 14688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14773;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14689) END FROM WidgetInst WHERE WidgetInstId = 14689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14774;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14690) END FROM WidgetInst WHERE WidgetInstId = 14690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14691) END FROM WidgetInst WHERE WidgetInstId = 14691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14692) END FROM WidgetInst WHERE WidgetInstId = 14692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14777;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14693) END FROM WidgetInst WHERE WidgetInstId = 14693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14694) END FROM WidgetInst WHERE WidgetInstId = 14694) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14695) END FROM WidgetInst WHERE WidgetInstId = 14695) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14696) END FROM WidgetInst WHERE WidgetInstId = 14696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14697) END FROM WidgetInst WHERE WidgetInstId = 14697) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14698) END FROM WidgetInst WHERE WidgetInstId = 14698) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14699) END FROM WidgetInst WHERE WidgetInstId = 14699) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14700) END FROM WidgetInst WHERE WidgetInstId = 14700) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14701) END FROM WidgetInst WHERE WidgetInstId = 14701) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14702) END FROM WidgetInst WHERE WidgetInstId = 14702) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14703) END FROM WidgetInst WHERE WidgetInstId = 14703) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14704) END FROM WidgetInst WHERE WidgetInstId = 14704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14789;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14807;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14808;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14809;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14810;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14819;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14821;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14822;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15028) END FROM WidgetInst WHERE WidgetInstId = 15028) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15029) END FROM WidgetInst WHERE WidgetInstId = 15029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15030) END FROM WidgetInst WHERE WidgetInstId = 15030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15031) END FROM WidgetInst WHERE WidgetInstId = 15031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15032) END FROM WidgetInst WHERE WidgetInstId = 15032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15033) END FROM WidgetInst WHERE WidgetInstId = 15033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15034) END FROM WidgetInst WHERE WidgetInstId = 15034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15035) END FROM WidgetInst WHERE WidgetInstId = 15035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15036) END FROM WidgetInst WHERE WidgetInstId = 15036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15037) END FROM WidgetInst WHERE WidgetInstId = 15037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15038) END FROM WidgetInst WHERE WidgetInstId = 15038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15039) END FROM WidgetInst WHERE WidgetInstId = 15039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15040) END FROM WidgetInst WHERE WidgetInstId = 15040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15041) END FROM WidgetInst WHERE WidgetInstId = 15041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15042) END FROM WidgetInst WHERE WidgetInstId = 15042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15043) END FROM WidgetInst WHERE WidgetInstId = 15043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15044) END FROM WidgetInst WHERE WidgetInstId = 15044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15028) END FROM WidgetInst WHERE WidgetInstId = 15028) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15029) END FROM WidgetInst WHERE WidgetInstId = 15029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15030) END FROM WidgetInst WHERE WidgetInstId = 15030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15031) END FROM WidgetInst WHERE WidgetInstId = 15031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15032) END FROM WidgetInst WHERE WidgetInstId = 15032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15033) END FROM WidgetInst WHERE WidgetInstId = 15033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15034) END FROM WidgetInst WHERE WidgetInstId = 15034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15035) END FROM WidgetInst WHERE WidgetInstId = 15035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15036) END FROM WidgetInst WHERE WidgetInstId = 15036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15037) END FROM WidgetInst WHERE WidgetInstId = 15037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15038) END FROM WidgetInst WHERE WidgetInstId = 15038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15039) END FROM WidgetInst WHERE WidgetInstId = 15039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15040) END FROM WidgetInst WHERE WidgetInstId = 15040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15041) END FROM WidgetInst WHERE WidgetInstId = 15041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15042) END FROM WidgetInst WHERE WidgetInstId = 15042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15043) END FROM WidgetInst WHERE WidgetInstId = 15043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15044) END FROM WidgetInst WHERE WidgetInstId = 15044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15028) END FROM WidgetInst WHERE WidgetInstId = 15028) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15029) END FROM WidgetInst WHERE WidgetInstId = 15029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15030) END FROM WidgetInst WHERE WidgetInstId = 15030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15031) END FROM WidgetInst WHERE WidgetInstId = 15031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15032) END FROM WidgetInst WHERE WidgetInstId = 15032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15033) END FROM WidgetInst WHERE WidgetInstId = 15033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15118;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15034) END FROM WidgetInst WHERE WidgetInstId = 15034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15035) END FROM WidgetInst WHERE WidgetInstId = 15035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15120;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15036) END FROM WidgetInst WHERE WidgetInstId = 15036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15037) END FROM WidgetInst WHERE WidgetInstId = 15037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15038) END FROM WidgetInst WHERE WidgetInstId = 15038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15039) END FROM WidgetInst WHERE WidgetInstId = 15039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15040) END FROM WidgetInst WHERE WidgetInstId = 15040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15041) END FROM WidgetInst WHERE WidgetInstId = 15041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15042) END FROM WidgetInst WHERE WidgetInstId = 15042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15043) END FROM WidgetInst WHERE WidgetInstId = 15043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15044) END FROM WidgetInst WHERE WidgetInstId = 15044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15129;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15147;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15148;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15150;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15158;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15160;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15161;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15162;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15385;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15387;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15393;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15395;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15396;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15397;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15398;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15400;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15401;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15420;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15421;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15424;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15470) END FROM WidgetInst WHERE WidgetInstId = 15470) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15471) END FROM WidgetInst WHERE WidgetInstId = 15471) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15472) END FROM WidgetInst WHERE WidgetInstId = 15472) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15473) END FROM WidgetInst WHERE WidgetInstId = 15473) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15490;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15474) END FROM WidgetInst WHERE WidgetInstId = 15474) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15475) END FROM WidgetInst WHERE WidgetInstId = 15475) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15476) END FROM WidgetInst WHERE WidgetInstId = 15476) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15477) END FROM WidgetInst WHERE WidgetInstId = 15477) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15494;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15478) END FROM WidgetInst WHERE WidgetInstId = 15478) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15495;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15479) END FROM WidgetInst WHERE WidgetInstId = 15479) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15496;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15480) END FROM WidgetInst WHERE WidgetInstId = 15480) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15481) END FROM WidgetInst WHERE WidgetInstId = 15481) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15498;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15482) END FROM WidgetInst WHERE WidgetInstId = 15482) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15483) END FROM WidgetInst WHERE WidgetInstId = 15483) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15500;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15484) END FROM WidgetInst WHERE WidgetInstId = 15484) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15485) END FROM WidgetInst WHERE WidgetInstId = 15485) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15486) END FROM WidgetInst WHERE WidgetInstId = 15486) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15470) END FROM WidgetInst WHERE WidgetInstId = 15470) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15471) END FROM WidgetInst WHERE WidgetInstId = 15471) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15522;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15472) END FROM WidgetInst WHERE WidgetInstId = 15472) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15523;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15473) END FROM WidgetInst WHERE WidgetInstId = 15473) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15474) END FROM WidgetInst WHERE WidgetInstId = 15474) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15475) END FROM WidgetInst WHERE WidgetInstId = 15475) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15476) END FROM WidgetInst WHERE WidgetInstId = 15476) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15477) END FROM WidgetInst WHERE WidgetInstId = 15477) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15478) END FROM WidgetInst WHERE WidgetInstId = 15478) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15479) END FROM WidgetInst WHERE WidgetInstId = 15479) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15480) END FROM WidgetInst WHERE WidgetInstId = 15480) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15481) END FROM WidgetInst WHERE WidgetInstId = 15481) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15482) END FROM WidgetInst WHERE WidgetInstId = 15482) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15483) END FROM WidgetInst WHERE WidgetInstId = 15483) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15484) END FROM WidgetInst WHERE WidgetInstId = 15484) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15485) END FROM WidgetInst WHERE WidgetInstId = 15485) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15486) END FROM WidgetInst WHERE WidgetInstId = 15486) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15470) END FROM WidgetInst WHERE WidgetInstId = 15470) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15368) END FROM WidgetInst WHERE WidgetInstId = 15368)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15555;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15471) END FROM WidgetInst WHERE WidgetInstId = 15471) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15369) END FROM WidgetInst WHERE WidgetInstId = 15369)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15472) END FROM WidgetInst WHERE WidgetInstId = 15472) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15370) END FROM WidgetInst WHERE WidgetInstId = 15370)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15473) END FROM WidgetInst WHERE WidgetInstId = 15473) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15371) END FROM WidgetInst WHERE WidgetInstId = 15371)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15474) END FROM WidgetInst WHERE WidgetInstId = 15474) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15372) END FROM WidgetInst WHERE WidgetInstId = 15372)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15475) END FROM WidgetInst WHERE WidgetInstId = 15475) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15373) END FROM WidgetInst WHERE WidgetInstId = 15373)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15476) END FROM WidgetInst WHERE WidgetInstId = 15476) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15374) END FROM WidgetInst WHERE WidgetInstId = 15374)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15477) END FROM WidgetInst WHERE WidgetInstId = 15477) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15375) END FROM WidgetInst WHERE WidgetInstId = 15375)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15478) END FROM WidgetInst WHERE WidgetInstId = 15478) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15376) END FROM WidgetInst WHERE WidgetInstId = 15376)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15479) END FROM WidgetInst WHERE WidgetInstId = 15479) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15377) END FROM WidgetInst WHERE WidgetInstId = 15377)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15480) END FROM WidgetInst WHERE WidgetInstId = 15480) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15378) END FROM WidgetInst WHERE WidgetInstId = 15378)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15481) END FROM WidgetInst WHERE WidgetInstId = 15481) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15379) END FROM WidgetInst WHERE WidgetInstId = 15379)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15566;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15482) END FROM WidgetInst WHERE WidgetInstId = 15482) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15380) END FROM WidgetInst WHERE WidgetInstId = 15380)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15567;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15483) END FROM WidgetInst WHERE WidgetInstId = 15483) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15381) END FROM WidgetInst WHERE WidgetInstId = 15381)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15484) END FROM WidgetInst WHERE WidgetInstId = 15484) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15382) END FROM WidgetInst WHERE WidgetInstId = 15382)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15485) END FROM WidgetInst WHERE WidgetInstId = 15485) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15383) END FROM WidgetInst WHERE WidgetInstId = 15383)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 15486) END FROM WidgetInst WHERE WidgetInstId = 15486) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 15384) END FROM WidgetInst WHERE WidgetInstId = 15384)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15589;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15590;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15591;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15594;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15595;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15623) END FROM WidgetInst WHERE WidgetInstId = 15623) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15624) END FROM WidgetInst WHERE WidgetInstId = 15624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15629) END FROM WidgetInst WHERE WidgetInstId = 15629) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15630) END FROM WidgetInst WHERE WidgetInstId = 15630) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15647;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15631) END FROM WidgetInst WHERE WidgetInstId = 15631) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15648;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15632) END FROM WidgetInst WHERE WidgetInstId = 15632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15649;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15633) END FROM WidgetInst WHERE WidgetInstId = 15633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15650;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15634) END FROM WidgetInst WHERE WidgetInstId = 15634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15651;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15635) END FROM WidgetInst WHERE WidgetInstId = 15635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15636) END FROM WidgetInst WHERE WidgetInstId = 15636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15637) END FROM WidgetInst WHERE WidgetInstId = 15637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15638) END FROM WidgetInst WHERE WidgetInstId = 15638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 15639) END FROM WidgetInst WHERE WidgetInstId = 15639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15623) END FROM WidgetInst WHERE WidgetInstId = 15623) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15624) END FROM WidgetInst WHERE WidgetInstId = 15624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15694;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15629) END FROM WidgetInst WHERE WidgetInstId = 15629) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15630) END FROM WidgetInst WHERE WidgetInstId = 15630) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15698;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15631) END FROM WidgetInst WHERE WidgetInstId = 15631) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15632) END FROM WidgetInst WHERE WidgetInstId = 15632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15633) END FROM WidgetInst WHERE WidgetInstId = 15633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15634) END FROM WidgetInst WHERE WidgetInstId = 15634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15635) END FROM WidgetInst WHERE WidgetInstId = 15635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15636) END FROM WidgetInst WHERE WidgetInstId = 15636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15704;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15637) END FROM WidgetInst WHERE WidgetInstId = 15637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15638) END FROM WidgetInst WHERE WidgetInstId = 15638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 15639) END FROM WidgetInst WHERE WidgetInstId = 15639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15623) END FROM WidgetInst WHERE WidgetInstId = 15623) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15624) END FROM WidgetInst WHERE WidgetInstId = 15624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15629) END FROM WidgetInst WHERE WidgetInstId = 15629) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15630) END FROM WidgetInst WHERE WidgetInstId = 15630) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15631) END FROM WidgetInst WHERE WidgetInstId = 15631) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15632) END FROM WidgetInst WHERE WidgetInstId = 15632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15633) END FROM WidgetInst WHERE WidgetInstId = 15633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15634) END FROM WidgetInst WHERE WidgetInstId = 15634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15635) END FROM WidgetInst WHERE WidgetInstId = 15635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15636) END FROM WidgetInst WHERE WidgetInstId = 15636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15755;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15637) END FROM WidgetInst WHERE WidgetInstId = 15637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15756;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15638) END FROM WidgetInst WHERE WidgetInstId = 15638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15757;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 15639) END FROM WidgetInst WHERE WidgetInstId = 15639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15758;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15623) END FROM WidgetInst WHERE WidgetInstId = 15623) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15929;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15624) END FROM WidgetInst WHERE WidgetInstId = 15624) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15930;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15625) END FROM WidgetInst WHERE WidgetInstId = 15625) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15931;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15626) END FROM WidgetInst WHERE WidgetInstId = 15626) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15932;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15627) END FROM WidgetInst WHERE WidgetInstId = 15627) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15933;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15628) END FROM WidgetInst WHERE WidgetInstId = 15628) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15934;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15629) END FROM WidgetInst WHERE WidgetInstId = 15629) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15935;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15630) END FROM WidgetInst WHERE WidgetInstId = 15630) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15936;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15631) END FROM WidgetInst WHERE WidgetInstId = 15631) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15632) END FROM WidgetInst WHERE WidgetInstId = 15632) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15633) END FROM WidgetInst WHERE WidgetInstId = 15633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15634) END FROM WidgetInst WHERE WidgetInstId = 15634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15635) END FROM WidgetInst WHERE WidgetInstId = 15635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15636) END FROM WidgetInst WHERE WidgetInstId = 15636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15637) END FROM WidgetInst WHERE WidgetInstId = 15637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15638) END FROM WidgetInst WHERE WidgetInstId = 15638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15944;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 15639) END FROM WidgetInst WHERE WidgetInstId = 15639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15945;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15981;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15983;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15984;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15986;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15987;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15994;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15995;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 15996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16031) END FROM WidgetInst WHERE WidgetInstId = 16031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16032) END FROM WidgetInst WHERE WidgetInstId = 16032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16033) END FROM WidgetInst WHERE WidgetInstId = 16033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16034) END FROM WidgetInst WHERE WidgetInstId = 16034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16035) END FROM WidgetInst WHERE WidgetInstId = 16035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16036) END FROM WidgetInst WHERE WidgetInstId = 16036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16037) END FROM WidgetInst WHERE WidgetInstId = 16037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16038) END FROM WidgetInst WHERE WidgetInstId = 16038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16039) END FROM WidgetInst WHERE WidgetInstId = 16039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16040) END FROM WidgetInst WHERE WidgetInstId = 16040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16041) END FROM WidgetInst WHERE WidgetInstId = 16041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16042) END FROM WidgetInst WHERE WidgetInstId = 16042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16043) END FROM WidgetInst WHERE WidgetInstId = 16043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16044) END FROM WidgetInst WHERE WidgetInstId = 16044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16045) END FROM WidgetInst WHERE WidgetInstId = 16045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16062;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16046) END FROM WidgetInst WHERE WidgetInstId = 16046) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16047) END FROM WidgetInst WHERE WidgetInstId = 16047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16031) END FROM WidgetInst WHERE WidgetInstId = 16031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16032) END FROM WidgetInst WHERE WidgetInstId = 16032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16033) END FROM WidgetInst WHERE WidgetInstId = 16033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16034) END FROM WidgetInst WHERE WidgetInstId = 16034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16035) END FROM WidgetInst WHERE WidgetInstId = 16035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16036) END FROM WidgetInst WHERE WidgetInstId = 16036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16037) END FROM WidgetInst WHERE WidgetInstId = 16037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16038) END FROM WidgetInst WHERE WidgetInstId = 16038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16039) END FROM WidgetInst WHERE WidgetInstId = 16039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16040) END FROM WidgetInst WHERE WidgetInstId = 16040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16041) END FROM WidgetInst WHERE WidgetInstId = 16041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16042) END FROM WidgetInst WHERE WidgetInstId = 16042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16043) END FROM WidgetInst WHERE WidgetInstId = 16043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16044) END FROM WidgetInst WHERE WidgetInstId = 16044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16045) END FROM WidgetInst WHERE WidgetInstId = 16045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16046) END FROM WidgetInst WHERE WidgetInstId = 16046) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16047) END FROM WidgetInst WHERE WidgetInstId = 16047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16031) END FROM WidgetInst WHERE WidgetInstId = 16031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16150;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16032) END FROM WidgetInst WHERE WidgetInstId = 16032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16033) END FROM WidgetInst WHERE WidgetInstId = 16033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16034) END FROM WidgetInst WHERE WidgetInstId = 16034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16035) END FROM WidgetInst WHERE WidgetInstId = 16035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16036) END FROM WidgetInst WHERE WidgetInstId = 16036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16037) END FROM WidgetInst WHERE WidgetInstId = 16037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16038) END FROM WidgetInst WHERE WidgetInstId = 16038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16039) END FROM WidgetInst WHERE WidgetInstId = 16039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16158;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16040) END FROM WidgetInst WHERE WidgetInstId = 16040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16041) END FROM WidgetInst WHERE WidgetInstId = 16041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16160;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16042) END FROM WidgetInst WHERE WidgetInstId = 16042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16161;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16043) END FROM WidgetInst WHERE WidgetInstId = 16043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16162;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16044) END FROM WidgetInst WHERE WidgetInstId = 16044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16045) END FROM WidgetInst WHERE WidgetInstId = 16045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16164;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16046) END FROM WidgetInst WHERE WidgetInstId = 16046) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16165;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16047) END FROM WidgetInst WHERE WidgetInstId = 16047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16166;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16031) END FROM WidgetInst WHERE WidgetInstId = 16031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16337;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16032) END FROM WidgetInst WHERE WidgetInstId = 16032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16338;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16033) END FROM WidgetInst WHERE WidgetInstId = 16033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16339;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16034) END FROM WidgetInst WHERE WidgetInstId = 16034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16035) END FROM WidgetInst WHERE WidgetInstId = 16035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16036) END FROM WidgetInst WHERE WidgetInstId = 16036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16037) END FROM WidgetInst WHERE WidgetInstId = 16037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16038) END FROM WidgetInst WHERE WidgetInstId = 16038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16039) END FROM WidgetInst WHERE WidgetInstId = 16039) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16345;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16040) END FROM WidgetInst WHERE WidgetInstId = 16040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16041) END FROM WidgetInst WHERE WidgetInstId = 16041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16042) END FROM WidgetInst WHERE WidgetInstId = 16042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16348;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16043) END FROM WidgetInst WHERE WidgetInstId = 16043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16349;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16044) END FROM WidgetInst WHERE WidgetInstId = 16044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16045) END FROM WidgetInst WHERE WidgetInstId = 16045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16351;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16046) END FROM WidgetInst WHERE WidgetInstId = 16046) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 16047) END FROM WidgetInst WHERE WidgetInstId = 16047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16424;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16430;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16431;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16432;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16433;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16434;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16457;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16460;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16490;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16494;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16495;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16496;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16498;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16500;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16504;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16505;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16506;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16538;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16539;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16563;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16564;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16565;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16566;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16567;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16405) END FROM WidgetInst WHERE WidgetInstId = 16405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16406) END FROM WidgetInst WHERE WidgetInstId = 16406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16407) END FROM WidgetInst WHERE WidgetInstId = 16407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16594;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16408) END FROM WidgetInst WHERE WidgetInstId = 16408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16595;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16409) END FROM WidgetInst WHERE WidgetInstId = 16409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16410) END FROM WidgetInst WHERE WidgetInstId = 16410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16411) END FROM WidgetInst WHERE WidgetInstId = 16411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16412) END FROM WidgetInst WHERE WidgetInstId = 16412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16413) END FROM WidgetInst WHERE WidgetInstId = 16413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16414) END FROM WidgetInst WHERE WidgetInstId = 16414) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16601;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16415) END FROM WidgetInst WHERE WidgetInstId = 16415) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16416) END FROM WidgetInst WHERE WidgetInstId = 16416) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16603;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16417) END FROM WidgetInst WHERE WidgetInstId = 16417) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16418) END FROM WidgetInst WHERE WidgetInstId = 16418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16419) END FROM WidgetInst WHERE WidgetInstId = 16419) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16606;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16420) END FROM WidgetInst WHERE WidgetInstId = 16420) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 16421) END FROM WidgetInst WHERE WidgetInstId = 16421) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12648) END FROM WidgetInst WHERE WidgetInstId = 12648) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16626;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12649) END FROM WidgetInst WHERE WidgetInstId = 12649) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16627;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12650) END FROM WidgetInst WHERE WidgetInstId = 12650) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12651) END FROM WidgetInst WHERE WidgetInstId = 12651) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16629;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16630;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12654) END FROM WidgetInst WHERE WidgetInstId = 12654) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16632;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12655) END FROM WidgetInst WHERE WidgetInstId = 12655) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16633;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12656) END FROM WidgetInst WHERE WidgetInstId = 12656) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16634;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12657) END FROM WidgetInst WHERE WidgetInstId = 12657) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16635;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12658) END FROM WidgetInst WHERE WidgetInstId = 12658) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16636;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12659) END FROM WidgetInst WHERE WidgetInstId = 12659) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16637;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12660) END FROM WidgetInst WHERE WidgetInstId = 12660) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16638;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12661) END FROM WidgetInst WHERE WidgetInstId = 12661) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16639;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12662) END FROM WidgetInst WHERE WidgetInstId = 12662) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12663) END FROM WidgetInst WHERE WidgetInstId = 12663) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 12664) END FROM WidgetInst WHERE WidgetInstId = 12664) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 12233) END FROM WidgetInst WHERE WidgetInstId = 12233)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16660) END FROM WidgetInst WHERE WidgetInstId = 16660) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16661) END FROM WidgetInst WHERE WidgetInstId = 16661) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16662) END FROM WidgetInst WHERE WidgetInstId = 16662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16663) END FROM WidgetInst WHERE WidgetInstId = 16663) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16664) END FROM WidgetInst WHERE WidgetInstId = 16664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16665) END FROM WidgetInst WHERE WidgetInstId = 16665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16666) END FROM WidgetInst WHERE WidgetInstId = 16666) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16667) END FROM WidgetInst WHERE WidgetInstId = 16667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16668) END FROM WidgetInst WHERE WidgetInstId = 16668) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16685;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16669) END FROM WidgetInst WHERE WidgetInstId = 16669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16686;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16670) END FROM WidgetInst WHERE WidgetInstId = 16670) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16671) END FROM WidgetInst WHERE WidgetInstId = 16671) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16688;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16672) END FROM WidgetInst WHERE WidgetInstId = 16672) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16673) END FROM WidgetInst WHERE WidgetInstId = 16673) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16690;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16674) END FROM WidgetInst WHERE WidgetInstId = 16674) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16675) END FROM WidgetInst WHERE WidgetInstId = 16675) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 16676) END FROM WidgetInst WHERE WidgetInstId = 16676) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16693;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16723;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16724;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16725;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 16728;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 16728;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 16728;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 16728;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 16728;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 16728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16732;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16733;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16734;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16741) END FROM WidgetInst WHERE WidgetInstId = 16741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16742) END FROM WidgetInst WHERE WidgetInstId = 16742) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16743) END FROM WidgetInst WHERE WidgetInstId = 16743) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16744) END FROM WidgetInst WHERE WidgetInstId = 16744) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16745) END FROM WidgetInst WHERE WidgetInstId = 16745) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 16746) END FROM WidgetInst WHERE WidgetInstId = 16746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16764;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 12230) END FROM WidgetInst WHERE WidgetInstId = 12230) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16834;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16836;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16843) END FROM WidgetInst WHERE WidgetInstId = 16843) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16844) END FROM WidgetInst WHERE WidgetInstId = 16844) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16850;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16845) END FROM WidgetInst WHERE WidgetInstId = 16845) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16846) END FROM WidgetInst WHERE WidgetInstId = 16846) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16847) END FROM WidgetInst WHERE WidgetInstId = 16847) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16848) END FROM WidgetInst WHERE WidgetInstId = 16848) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16854;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16843) END FROM WidgetInst WHERE WidgetInstId = 16843) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16844) END FROM WidgetInst WHERE WidgetInstId = 16844) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16845) END FROM WidgetInst WHERE WidgetInstId = 16845) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16846) END FROM WidgetInst WHERE WidgetInstId = 16846) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16847) END FROM WidgetInst WHERE WidgetInstId = 16847) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16848) END FROM WidgetInst WHERE WidgetInstId = 16848) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16872;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16897) END FROM WidgetInst WHERE WidgetInstId = 16897) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16903;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16898) END FROM WidgetInst WHERE WidgetInstId = 16898) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16899) END FROM WidgetInst WHERE WidgetInstId = 16899) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16900) END FROM WidgetInst WHERE WidgetInstId = 16900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16901) END FROM WidgetInst WHERE WidgetInstId = 16901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16902) END FROM WidgetInst WHERE WidgetInstId = 16902) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16897) END FROM WidgetInst WHERE WidgetInstId = 16897) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16898) END FROM WidgetInst WHERE WidgetInstId = 16898) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16899) END FROM WidgetInst WHERE WidgetInstId = 16899) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16900) END FROM WidgetInst WHERE WidgetInstId = 16900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16901) END FROM WidgetInst WHERE WidgetInstId = 16901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16902) END FROM WidgetInst WHERE WidgetInstId = 16902) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16926;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16897) END FROM WidgetInst WHERE WidgetInstId = 16897) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16898) END FROM WidgetInst WHERE WidgetInstId = 16898) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16899) END FROM WidgetInst WHERE WidgetInstId = 16899) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16900) END FROM WidgetInst WHERE WidgetInstId = 16900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16901) END FROM WidgetInst WHERE WidgetInstId = 16901) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 16902) END FROM WidgetInst WHERE WidgetInstId = 16902) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16944;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16957;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16958;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16959;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16960;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16969) END FROM WidgetInst WHERE WidgetInstId = 16969)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16987;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16970) END FROM WidgetInst WHERE WidgetInstId = 16970)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16971) END FROM WidgetInst WHERE WidgetInstId = 16971)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16972) END FROM WidgetInst WHERE WidgetInstId = 16972)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16973) END FROM WidgetInst WHERE WidgetInstId = 16973)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 16974) END FROM WidgetInst WHERE WidgetInstId = 16974)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 16992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17006;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17007;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17008;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17010;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17011;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17012;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17014;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17015;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17016;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17032;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17033;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17035;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17036;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17037;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17038;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17039;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17040;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16969) END FROM WidgetInst WHERE WidgetInstId = 16969)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17041;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16970) END FROM WidgetInst WHERE WidgetInstId = 16970)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16971) END FROM WidgetInst WHERE WidgetInstId = 16971)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16972) END FROM WidgetInst WHERE WidgetInstId = 16972)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17044;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16973) END FROM WidgetInst WHERE WidgetInstId = 16973)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 16974) END FROM WidgetInst WHERE WidgetInstId = 16974)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17062;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17077) END FROM WidgetInst WHERE WidgetInstId = 17077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17078) END FROM WidgetInst WHERE WidgetInstId = 17078) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17079) END FROM WidgetInst WHERE WidgetInstId = 17079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17080) END FROM WidgetInst WHERE WidgetInstId = 17080) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17081) END FROM WidgetInst WHERE WidgetInstId = 17081) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17082) END FROM WidgetInst WHERE WidgetInstId = 17082) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17077) END FROM WidgetInst WHERE WidgetInstId = 17077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17078) END FROM WidgetInst WHERE WidgetInstId = 17078) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17079) END FROM WidgetInst WHERE WidgetInstId = 17079) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17080) END FROM WidgetInst WHERE WidgetInstId = 17080) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17081) END FROM WidgetInst WHERE WidgetInstId = 17081) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 17082) END FROM WidgetInst WHERE WidgetInstId = 17082) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17119;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17120;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16981) END FROM WidgetInst WHERE WidgetInstId = 16981) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16982) END FROM WidgetInst WHERE WidgetInstId = 16982) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16983) END FROM WidgetInst WHERE WidgetInstId = 16983) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16984) END FROM WidgetInst WHERE WidgetInstId = 16984) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16985) END FROM WidgetInst WHERE WidgetInstId = 16985) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17129;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 16986) END FROM WidgetInst WHERE WidgetInstId = 16986) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17130;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17131;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17132;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17133;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17134;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17135;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17136;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17150;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17152;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17153;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17347) END FROM WidgetInst WHERE WidgetInstId = 17347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17348) END FROM WidgetInst WHERE WidgetInstId = 17348) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17354;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17349) END FROM WidgetInst WHERE WidgetInstId = 17349) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17355;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17350) END FROM WidgetInst WHERE WidgetInstId = 17350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17356;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17351) END FROM WidgetInst WHERE WidgetInstId = 17351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17357;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17352) END FROM WidgetInst WHERE WidgetInstId = 17352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17358;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17347) END FROM WidgetInst WHERE WidgetInstId = 17347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17365;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17348) END FROM WidgetInst WHERE WidgetInstId = 17348) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17366;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17349) END FROM WidgetInst WHERE WidgetInstId = 17349) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17350) END FROM WidgetInst WHERE WidgetInstId = 17350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17351) END FROM WidgetInst WHERE WidgetInstId = 17351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17369;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17352) END FROM WidgetInst WHERE WidgetInstId = 17352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17347) END FROM WidgetInst WHERE WidgetInstId = 17347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17377;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17348) END FROM WidgetInst WHERE WidgetInstId = 17348) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17378;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17349) END FROM WidgetInst WHERE WidgetInstId = 17349) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17350) END FROM WidgetInst WHERE WidgetInstId = 17350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17380;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17351) END FROM WidgetInst WHERE WidgetInstId = 17351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17381;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17352) END FROM WidgetInst WHERE WidgetInstId = 17352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17382;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17393;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17443) END FROM WidgetInst WHERE WidgetInstId = 17443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17444) END FROM WidgetInst WHERE WidgetInstId = 17444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17445) END FROM WidgetInst WHERE WidgetInstId = 17445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17446) END FROM WidgetInst WHERE WidgetInstId = 17446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17447) END FROM WidgetInst WHERE WidgetInstId = 17447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17448) END FROM WidgetInst WHERE WidgetInstId = 17448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17443) END FROM WidgetInst WHERE WidgetInstId = 17443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17461;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17444) END FROM WidgetInst WHERE WidgetInstId = 17444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17445) END FROM WidgetInst WHERE WidgetInstId = 17445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17446) END FROM WidgetInst WHERE WidgetInstId = 17446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17464;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17447) END FROM WidgetInst WHERE WidgetInstId = 17447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17448) END FROM WidgetInst WHERE WidgetInstId = 17448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17443) END FROM WidgetInst WHERE WidgetInstId = 17443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17444) END FROM WidgetInst WHERE WidgetInstId = 17444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17445) END FROM WidgetInst WHERE WidgetInstId = 17445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17446) END FROM WidgetInst WHERE WidgetInstId = 17446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17447) END FROM WidgetInst WHERE WidgetInstId = 17447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17448) END FROM WidgetInst WHERE WidgetInstId = 17448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17478;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17486;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17490;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17563) END FROM WidgetInst WHERE WidgetInstId = 17563) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17564) END FROM WidgetInst WHERE WidgetInstId = 17564) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17565) END FROM WidgetInst WHERE WidgetInstId = 17565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17566) END FROM WidgetInst WHERE WidgetInstId = 17566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17567) END FROM WidgetInst WHERE WidgetInstId = 17567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17568) END FROM WidgetInst WHERE WidgetInstId = 17568) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17574;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17563) END FROM WidgetInst WHERE WidgetInstId = 17563) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17581;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17564) END FROM WidgetInst WHERE WidgetInstId = 17564) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17582;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17565) END FROM WidgetInst WHERE WidgetInstId = 17565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17583;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17566) END FROM WidgetInst WHERE WidgetInstId = 17566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17584;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17567) END FROM WidgetInst WHERE WidgetInstId = 17567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17585;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17568) END FROM WidgetInst WHERE WidgetInstId = 17568) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17586;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17563) END FROM WidgetInst WHERE WidgetInstId = 17563) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17564) END FROM WidgetInst WHERE WidgetInstId = 17564) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17594;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17565) END FROM WidgetInst WHERE WidgetInstId = 17565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17595;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17566) END FROM WidgetInst WHERE WidgetInstId = 17566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17567) END FROM WidgetInst WHERE WidgetInstId = 17567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17597;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17568) END FROM WidgetInst WHERE WidgetInstId = 17568) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17605;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17606;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17690;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17694;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17704;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17706;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17716;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17718;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17719) END FROM WidgetInst WHERE WidgetInstId = 17719) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17720) END FROM WidgetInst WHERE WidgetInstId = 17720) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17721) END FROM WidgetInst WHERE WidgetInstId = 17721) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17722) END FROM WidgetInst WHERE WidgetInstId = 17722) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17723) END FROM WidgetInst WHERE WidgetInstId = 17723) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17724) END FROM WidgetInst WHERE WidgetInstId = 17724) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17719) END FROM WidgetInst WHERE WidgetInstId = 17719) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17737;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17720) END FROM WidgetInst WHERE WidgetInstId = 17720) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17738;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17721) END FROM WidgetInst WHERE WidgetInstId = 17721) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17739;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17722) END FROM WidgetInst WHERE WidgetInstId = 17722) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17740;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17723) END FROM WidgetInst WHERE WidgetInstId = 17723) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17741;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17724) END FROM WidgetInst WHERE WidgetInstId = 17724) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17719) END FROM WidgetInst WHERE WidgetInstId = 17719) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17683) END FROM WidgetInst WHERE WidgetInstId = 17683)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17720) END FROM WidgetInst WHERE WidgetInstId = 17720) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17684) END FROM WidgetInst WHERE WidgetInstId = 17684)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17721) END FROM WidgetInst WHERE WidgetInstId = 17721) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17685) END FROM WidgetInst WHERE WidgetInstId = 17685)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17751;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17722) END FROM WidgetInst WHERE WidgetInstId = 17722) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17686) END FROM WidgetInst WHERE WidgetInstId = 17686)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17752;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17723) END FROM WidgetInst WHERE WidgetInstId = 17723) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17687) END FROM WidgetInst WHERE WidgetInstId = 17687)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17753;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 17724) END FROM WidgetInst WHERE WidgetInstId = 17724) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 17688) END FROM WidgetInst WHERE WidgetInstId = 17688)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17754;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17764;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17766;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17773) END FROM WidgetInst WHERE WidgetInstId = 17773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17774) END FROM WidgetInst WHERE WidgetInstId = 17774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17775) END FROM WidgetInst WHERE WidgetInstId = 17775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17776) END FROM WidgetInst WHERE WidgetInstId = 17776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17777) END FROM WidgetInst WHERE WidgetInstId = 17777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17778) END FROM WidgetInst WHERE WidgetInstId = 17778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17773) END FROM WidgetInst WHERE WidgetInstId = 17773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17774) END FROM WidgetInst WHERE WidgetInstId = 17774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17775) END FROM WidgetInst WHERE WidgetInstId = 17775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17776) END FROM WidgetInst WHERE WidgetInstId = 17776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17777) END FROM WidgetInst WHERE WidgetInstId = 17777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17778) END FROM WidgetInst WHERE WidgetInstId = 17778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17802;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17773) END FROM WidgetInst WHERE WidgetInstId = 17773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17774) END FROM WidgetInst WHERE WidgetInstId = 17774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17775) END FROM WidgetInst WHERE WidgetInstId = 17775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17776) END FROM WidgetInst WHERE WidgetInstId = 17776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17777) END FROM WidgetInst WHERE WidgetInstId = 17777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17819;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17778) END FROM WidgetInst WHERE WidgetInstId = 17778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17773) END FROM WidgetInst WHERE WidgetInstId = 17773) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17881;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17774) END FROM WidgetInst WHERE WidgetInstId = 17774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17882;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17775) END FROM WidgetInst WHERE WidgetInstId = 17775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17776) END FROM WidgetInst WHERE WidgetInstId = 17776) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17777) END FROM WidgetInst WHERE WidgetInstId = 17777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17778) END FROM WidgetInst WHERE WidgetInstId = 17778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16723) END FROM WidgetInst WHERE WidgetInstId = 16723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16724) END FROM WidgetInst WHERE WidgetInstId = 16724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16725) END FROM WidgetInst WHERE WidgetInstId = 16725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16726) END FROM WidgetInst WHERE WidgetInstId = 16726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16727) END FROM WidgetInst WHERE WidgetInstId = 16727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17903;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 16728) END FROM WidgetInst WHERE WidgetInstId = 16728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17917) END FROM WidgetInst WHERE WidgetInstId = 17917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17918) END FROM WidgetInst WHERE WidgetInstId = 17918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17919) END FROM WidgetInst WHERE WidgetInstId = 17919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17920) END FROM WidgetInst WHERE WidgetInstId = 17920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17926;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17921) END FROM WidgetInst WHERE WidgetInstId = 17921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17927;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 17922) END FROM WidgetInst WHERE WidgetInstId = 17922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17928;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17917) END FROM WidgetInst WHERE WidgetInstId = 17917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17918) END FROM WidgetInst WHERE WidgetInstId = 17918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17919) END FROM WidgetInst WHERE WidgetInstId = 17919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17920) END FROM WidgetInst WHERE WidgetInstId = 17920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17944;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17921) END FROM WidgetInst WHERE WidgetInstId = 17921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17945;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 17922) END FROM WidgetInst WHERE WidgetInstId = 17922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17946;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17917) END FROM WidgetInst WHERE WidgetInstId = 17917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17959;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17918) END FROM WidgetInst WHERE WidgetInstId = 17918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17960;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17919) END FROM WidgetInst WHERE WidgetInstId = 17919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17920) END FROM WidgetInst WHERE WidgetInstId = 17920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17962;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17921) END FROM WidgetInst WHERE WidgetInstId = 17921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17963;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 17922) END FROM WidgetInst WHERE WidgetInstId = 17922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 17964;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17917) END FROM WidgetInst WHERE WidgetInstId = 17917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18025;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17918) END FROM WidgetInst WHERE WidgetInstId = 17918) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17919) END FROM WidgetInst WHERE WidgetInstId = 17919) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17920) END FROM WidgetInst WHERE WidgetInstId = 17920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17921) END FROM WidgetInst WHERE WidgetInstId = 17921) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 17922) END FROM WidgetInst WHERE WidgetInstId = 17922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18053) END FROM WidgetInst WHERE WidgetInstId = 18053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 18054) END FROM WidgetInst WHERE WidgetInstId = 18054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18053) END FROM WidgetInst WHERE WidgetInstId = 18053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18071;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18054) END FROM WidgetInst WHERE WidgetInstId = 18054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18072;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18053) END FROM WidgetInst WHERE WidgetInstId = 18053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18054) END FROM WidgetInst WHERE WidgetInstId = 18054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18053) END FROM WidgetInst WHERE WidgetInstId = 18053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18054) END FROM WidgetInst WHERE WidgetInstId = 18054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18104;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18053) END FROM WidgetInst WHERE WidgetInstId = 18053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18054) END FROM WidgetInst WHERE WidgetInstId = 18054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18049) END FROM WidgetInst WHERE WidgetInstId = 18049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18050) END FROM WidgetInst WHERE WidgetInstId = 18050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18051) END FROM WidgetInst WHERE WidgetInstId = 18051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 18052) END FROM WidgetInst WHERE WidgetInstId = 18052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 18118;


